package com.dk.mapper;

import com.dk.entity.TCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-11-01
 */
public interface TCarMapper extends BaseMapper<TCar> {

    List<TCar> findAllByPriceAsc(@Param("num") Integer num, @Param("size") Integer size);

    List<TCar> findAllByPriceDesc(@Param("num") Integer num, @Param("size") Integer size);

    List<TCar> findAllByAgeDesc(@Param("num") Integer num, @Param("size") Integer size);

    List<TCar> findAllByMileageAsc(@Param("num") Integer num, @Param("size") Integer size);

    Integer getTotalCount();

}
